package com.lingdong.onlinejudge.model.vo.topic;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lingdong.onlinejudge.model.dto.topic.JudgeCase;
import com.lingdong.onlinejudge.model.dto.topic.JudgeConfig;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class TopicVo {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 题目标题
     */
    private String title;

    /**
     * 题目id
     */
    private Long topicNumber;

    /**
     * 题目内容
     */
    private String content;

    /**
     * 标签
     */
    private List<String> tags;

    /**
     * 题目答案
     */
    private String answer;

    /**
     * 判题用例
     */
    private List<JudgeCase> judgeCase;

    /**
     * 判题配置
     */
    private JudgeConfig judgeConfig;

    /**
     * 题目经验
     */
    private Integer topicExp;

    /**
     * 示例用例
     */
    private List<JudgeCase> topicCase;

    /**
     * 题目难度
     */
    private Integer difficulty;

    /**
     * 题目类型 0-自动判题 1-手动判题
     */
    private Integer topicType;

    /**
     * 题目允许使用的语言
     */
    private Integer topicLanguage;

    /**
     * 题目提示
     */
    private String topicTip;

    /**
     * 题目提示
     */
    private Boolean submitStatus;

    /**
     * 创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

}
